#ifndef TETRIS_POINT_HPP
#define TETRIS_POINT_HPP

namespace Tetris {

// 表示二维坐标的结构体
struct Point {
    int x;
    int y;

    Point(int _x = 0, int _y = 0) : x(_x), y(_y) {}

    bool operator==(const Point& other) const {
        return x == other.x && y == other.y;
    }

    Point operator+(const Point& other) const {
        return Point(x + other.x, y + other.y);
    }
};

} // namespace Tetris
#endif // TETRIS_POINT_HPP

